package sw6.xmlvalidator.issues;

/**
 * Representation of an Error. Used to represent
 * an error in the check of ones settings.xml file.
 * @author Lasse
 */
public class Error extends Issue implements Comparable<Error> {

	/**
	 * Error constructor.
	 * @param msg Error message.
	 * @param lineNumber Linenumber reference to the error.
	 */
	public Error(String msg, int lineNumber) {
		super(msg, lineNumber);
	}

	public int compareTo(Error o) {
		return this.getLineNumber() - o.getLineNumber();
	}
}
